<?php /* Smarty version Smarty-3.0.7, created on 2011-07-13 18:51:29
         compiled from ".\templates\contactos.tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:145944e1e1361413b64-52066095%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b7349c88d64a921f492a97a49f6a9dad8015428f' => 
    array (
      0 => '.\\templates\\contactos.tpl.html',
      1 => 1310161215,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '145944e1e1361413b64-52066095',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div align="justify" style="font-size:12px; color:#222222; padding: 2px 30px 30px 30px;">
       <center>
        <div style="height:40px; padding-bottom: 5px;">
            <table border="0px">
                <tr>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="contactos.php?do=add">
                        <img  src="img/add.png"  class="redsocial_icon" title="Nuevo Contacto" border="0" alt="Nueva Contacto" width="30" height="30">
                    </a>
                    </div>
                    </td>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="contactos.php">
                        <img  src="img/search.png"  class="redsocial_icon" title="Buscar Contactos" border="0" alt="Buscar Contactos" width="30" height="30">
                    </a>
                    </div>
                    </td>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="contactos.php">
                        <img  src="img/piechart.png"  class="redsocial_icon" title="Ver Reportes de Contactos" border="0" alt="Ver Reportes de Contactos" width="30" height="30">
                    </a>
                    </div>
                    </td>
                    <td>
                    <div style="width: 70px; padding: 3px;">
                    <a href="configuraciones.php">
                        <img  src="img/profile.png"  class="redsocial_icon" title="Editar Configuraci&oacute;n de Usuario" border="0" alt="Editar Configuraci&oacute;n de Usuario" width="30" height="30">
                    </a>
                    </div>
                    </td>
                </tr>
            </table>
        </div>
    </center>
        
        <center>
        <div id="buscador">          
            <table width="100%" border="0px">
              <form action="contactos.php?do=buscar" method="post" enctype="multipart/form-data" name="form1" id="form1">
              <tr>
                <td><div align="center" style="float:left;padding: 5px 5px 5px 5px; width:100px;"></div></td>
                <td><div align="center">
                  <label>
                  <div>
                  	<div align="left" style="float:left;padding: 5px 5px 5px 5px;"><strong>Buscar por:</strong></div>
                  	<div align="right" style="float:left;padding: 5px 5px 5px 5px;">
                    	<input name="txtbuscar" type="text" id="txtbuscar" size="50" maxlength="50" />
                        </div>
                  </div>
                  </label>
                </div></td>
                <td>
                  <div>
                  <div align="left" style="float:left;padding: 5px 5px 5px 5px;"><strong>En:</strong></div>
                    <div align="right" style="float:left;padding: 5px 5px 5px 5px;">
                    <select name="lstopciones" size="1" id="lstopciones" style="width: 200px;">
                      <option value="con_nombre" selected="selected">Nombre</option>
                      <option value="con_apellidos">Apellidos</option>
                      <option value="con_email">E-Mail</option>
                      <option value="con_twitter">Twitter</option>
                      <option value="con_facebook">Facebook</option>
                      <option value="con_telefono">Telefono</option>                      
                    </select>
                    </div>
                  </div>                </td>
                <td>
                <div align="center" style="float:left;">
                  <label>
                  <input type="submit" name="btnbuscar" class="boton_buscar" value="Buscar" />
                  </label>
                </div> 
                </td>
              </tr>
              </form>
              <tr>
                <td colspan="4">
                <div id="abecedario">
                  <div>
                  <table width="100%" border="0">
                    <tr align="center">
                    <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('abecedario')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                      <td>
                      <div id="<?php echo $_smarty_tpl->getVariable('abecedario')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
" style="border:solid 1px #999999; width:80%; text-align:center; padding:3px;background:#FFFFFF;">
                      <a href="contactos.php?do=buscarletra&let=<?php echo $_smarty_tpl->getVariable('abecedario')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
"><?php echo $_smarty_tpl->getVariable('abecedario')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
</a>
                      </div>
                      </td>
                    <?php endfor; endif; ?>
                    </tr>
                  </table>
                  </div>
                </div>
                </td>
              </tr>
            </table>
        </div>
        </center>
        
        
        <div style="padding: 10px 10px 10px 10px">
            <table class="lista">
              <tr>
                <th width="1%">Codigo</th>
                <th>Nombre</th>
                <th>Apellidos</th>
                <th>Cargo</th>
                <th>Email</th>
                <th>Twitter</th>
                <th>Facebook</th>
                <th>Telefono</th>
                <th>Accion</th>
              </tr>
              <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listacontactos')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
              <tr> 		
                <td align="center"><?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_cod'];?>
</td>
                <td>
                <a href="contactos.php?do=mod&id=<?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_cod'];?>
" style="color:#003366;"><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_nombre']);?>
</a>
                </td>
                <td>
                    <a href="contactos.php?do=mod&id=<?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_cod'];?>
" style="color:#003366;">
                    <?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_apellidos']);?>

                    </a>
                </td>
                <td><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_cargo']);?>
</td>
                <td><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_email']);?>
</td>
                <td>
                    <?php if ($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_twitter']!=''){?>
                    <a href="http://www.twitter.com/<?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_twitter']);?>
" target="_blank">
                    <img class="redsocial_icon" title="Twitter" border="0" alt="Facebook" align="left" src="img/twt.png" width="14" height="14">
                    </a>
                    <a href="http://www.twitter.com/<?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_twitter']);?>
"  target="_blank"><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_twitter']);?>
</a>
                    <?php }?>                      
                </td>
                <td>
                	<?php if ($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_facebook']!=''){?>                    
			<a href="http://www.facebook.com/<?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_facebook']);?>
" target="_blank">
                    	<img class="redsocial_icon" title="Facebook" border="0" alt="Facebook" align="left" src="img/fb.jpg" width="14" height="14">
                    </a>
                    <a href="http://www.facebook.com/<?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_facebook']);?>
" target="_blank"><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_facebook']);?>
</a>                    <?php }?>                    
                </td>
                <td><?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_telefono'];?>
</td>
                <td align="center">
                <a href="contactos.php?do=mod&id=<?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_cod'];?>
">Editar</a>
                <a href="contactos.php?do=dell&id=<?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['con_cod'];?>
">Eliminar</a></td>                                                     
              </tr>
             <?php endfor; endif; ?>
            </table>
        </div>
                <p>
        	SOCIAL CRM es un Sistema de Gesti&oacute;n y Administraci&oacute;n de Campa&ntilde;as publicitarias para peque&ntilde;as y medianas empresas, desde un enfoque de SOCIAL MEDIA.
                Se gestionar&aacute; publicaciones autom&aacute;ticas en las Redes Sociales de mayor difusi&oacute;n como Faceboook, Twitter and Linkedin por cada env&iacute;o de publicidad realizado.
        </p>
</div>